﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ControlCenter.Model.BizEntities
{
    /// <summary>
    /// 机器人包编辑DTO
    /// </summary>
    public class SaveRobotInfoDto
    {
        /// <summary>
        /// 机器人信息
        /// </summary>
        public RobotInfo RobotInfo { get; set; }
        /// <summary>
        /// 应用包列表
        /// </summary>
        public List<SaveRobotPackageInfo> Packages { get; set; }
    }

    /// <summary>
    /// 机器人应用包明细DTO
    /// </summary>
    public class SaveRobotPackageInfo
    {
        /// <summary>
        /// 机器人的应用包ID
        /// </summary>
        public Guid RpId { get; set; }
        /// <summary>
        /// 机器人ID
        /// </summary>
        public Guid RobotId { get; set; }
        /// <summary>
        /// 包ID
        /// </summary>
        public Guid PackageId { get; set; }
        /// <summary>
        /// 包名称
        /// </summary>
        public string PackageName { get; set; }
        /// <summary>
        /// 包版本
        /// </summary>
        public string PackageVersion { get; set; }
        /// <summary>
        /// 是否安装
        /// </summary>
        public int IsInstall { get; set; }
        /// <summary>
        /// 包状态
        /// </summary>
        public int PackageStatus { get; set; }
        /// <summary>
        /// 执行周期名称
        /// </summary>
        public string ExecCycleName { get; set; }
        /// <summary>
        /// 执行周期表达式
        /// </summary>
        public string ExecCycleCron { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int Sequence { get; set; }
    }
}
